import type { UserEntity } from "src/entity";

export enum CacheKeyPrefix {
    AUTH_TOKEN_KEY = "auth:token:key:",
    USER_INFO_KEY = "user:info:key:",
}

export function getAuthTokenKey(id: UserEntity["id"]) {
    return `${CacheKeyPrefix.AUTH_TOKEN_KEY}${id}` as const;
}

export function getUserInfoKey(id: UserEntity["id"]) {
    return `${CacheKeyPrefix.USER_INFO_KEY}${id}` as const;
}
